package indi.zhifa.study2024.consigntest.gen.busy.consign.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import indi.zhifa.core.mpenhance.entity.annotations.ZfDbService;
import indi.zhifa.study2024.consigntest.gen.busy.consign.po.GenConsignEntity;
import indi.zhifa.study2024.consigntest.gen.busy.consign.po.GenConsignHeaderEntity;
import indi.zhifa.study2024.consigntest.gen.busy.consign.mapper.GenConsignHeaderMapper;
import indi.zhifa.study2024.consigntest.gen.busy.consign.service.IGenConsignHeaderDbService;
import indi.zhifa.core.mpenhance.service.impl.ZfDbServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 织法
 * @since 2024-12-17
 */
@ZfDbService(name="GenConsignHeaderEntity")
public class GenConsignHeaderDbServiceImpl extends ZfDbServiceImpl<GenConsignHeaderMapper, GenConsignHeaderEntity> implements IGenConsignHeaderDbService {

    @Override
    public void clearTest() {
        LambdaUpdateWrapper<GenConsignHeaderEntity> updateWrapper = new LambdaUpdateWrapper<GenConsignHeaderEntity>()
                .eq(GenConsignHeaderEntity::getTestData,true);
        remove(updateWrapper);
    }
}
